<template>
	<view class="" @click="handleClick">
			<slot>
			</slot>
	</view>
</template>

<script>
	export default{
		props:{
			list:Array,
			index:Number
		},
		data(){
			return{
				
			}
		},
		mounted(){
		
		},
		methods:{
			handleClick(){
				// 缓存数据
				getApp().globalData.imgList = this.list
				getApp().globalData.imgIndex = this.index
				uni.navigateTo({
					url:'/pages/ImgDetail/index'
				})
			}
		}
	}
</script>

<style>
</style>
